1. Define a class called UFC fighter. a. Make instance variable foe Name, Weight, Wins, Losses b. Create a static variable for...
1. Define a class called UFC fighter.
a. Make instance variable foe Name, Weight, Wins, Losses
b. Create a static variable for TotalFights
c. Create a default constructor that defaults name to “NoName yet” and all other variables to 0.
d. Create a constructor that has parameters that set the value for name and weight, and sets wins and losses to -.
e. Create accessor methods for all the variables.
f. Create a method that increments Wins and TotalFights
g. Create a method that increments losses and TotalFights.
h. Create a method that compares a fighter’s wins to their losses and tells whether or not they have a winning record.
2. Create an Array of integers called Numbers. Allow the user to pick the size of the array and enter values for each index. After the array is filled, return the sum of all the values. Then reprint the numbers and state what percentage of the sum the value is.
How many numbers will you enter?
2
1
1
Enter the Numbers
2, Which is 50% of the sum
1, Which is 25% of the sum
1, Which is 25% of the sum
11 years ago
18
Purchase the answer to view it

- assignment.zip
Purchase the answer to view it

- ufcfighter.doc
- ufcfighter.png
- ufcfighter.zip
- arrayint.zip
- arrayint.doc
- arrayint.png
- Discussion Questions
- Strategic planning process
- Please read the “The DMV” case study on pages 306-307 in your textbook. The questions on pages 307-308 have been modified. Answer the questions below using the information found in the case study and the required reading.
- Discussion
- "Discretionary Employee Benefits"
- who got this?
- essay questions
- Individual or event in American History from 1877-1945 Short Essay
- Analysis of the poems "The girls at the green hotel" and "Everyday knows"
- Organisation Behaviour